import java.util.Scanner;

public class Display {
    private int vexNum;
    private VNode[] vexs;
    private ArcNode[][] arcs;
    Main m = new Main();

    public Display(int vexNum, VNode[] vexs, ArcNode[][] arcs){
        this.vexNum = vexNum;
        this.vexs = vexs;
        this.arcs = arcs;
    }

    public void display(){
        System.out.println("————————————————————航班信息————————————————————");
        for (int i = 0;i<vexNum;i++){
            for (int j = 0;j<vexNum;j++){
                if (arcs[i][j] != null) {
                    System.out.println(arcs[i][j]);
                }
            }
        }
        System.out.println("——————————————————————————————————————————————");
        System.out.println("（1）返回\t\t（2）退出");
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        switch (i){
            case 1:
                m.menu();
            case 2:
                break;
            default:
                System.out.println("请输入1、2进行选择。");
                break;
        }
    }
}
